package bootstrap

import (
	"wechat/pkg/route"
	"wechat/routes"

	"github.com/gorilla/mux"
)

// SetupRoute 路由初始化
func SetupRoute() *mux.Router {
	//创建一个实例
	router := mux.NewRouter()
	//注册路由
	routes.RegisterApiRoutes(router)
	//设置全局变量
	route.SetRoute(router)

	return router
}
